import request from '@/config/axios'

export interface StatementWorkshopWageVO {
  id: number
  jobNumber: string
  staffName: string
  teamCode: string
  teamName: string
  totalOvertimeHour: number
  totalAttendanceSkyNumber: number
  insideFactoryOvertimeHour: number
  dictStaffType: number
  pieceRate: number
  insideFactoryOvertimeWage: number
  leaderSubsidy: number
  rewardsPunishments: number
  totalWages: number
  summaryMonth: string
  dictPost: number
  creatorName: string
  updaterName: string
}

// 查询工资核算-报表查询-车间工资汇总列表
export const getStatementWorkshopWagePage = async (params) => {
  return await request.get({ url: `/salary/statement-workshop-wage/page`, params })
}

// 导出工资核算-报表查询-车间工资汇总 Excel
export const exportStatementWorkshopWage = async (data) => {
  return await request.download({ url: `/salary/statement-workshop-wage/export-excel`, data })
}
